Amiga Active list (699/1044)

From:Shawn Holwegner
Date:21 Sep 2001 at 20:18:44
Subject:Re: [amigactive] Floating Point -> Fixed Point conversion

on 9/21/01 1:01 PM, Matt at matt@kittycat.co.uk wrote:

Mattster! 'Cooniewaves!

> It's something like
>
> #define ToFixed(n) ( ((float)n) * (1<< 16) )

If you mean a 16.16 fixed, that'll work.

What about just: ((int)(n) << 16)

- S



"Men have forgotten this truth," said the fox. "But you must not forget it.
You become responsible, forever, for what you have tamed."
- The Little Prince

------------------------ Yahoo! Groups Sponsor ---------------------~-->
Get your FREE VeriSign guide to security solutions for your web site: encrypting transactions, securing intranets, and more!
http://us.click.yahoo.com/XrFcOC/m5_CAA/yigFAA/dpFolB/TM
---------------------------------------------------------------------~->

Quote carefully and read all ADMIN:README mails
To unsubscribe mailto:amigactive-unsubscribe@yahoogroups.com
Anyone sending unsubscribe messages to the list will be SHOT!

Your use of Yahoo! Groups is subject to http://docs.yahoo.com/info/terms/